package com.car;

import com.car.dao.impl.UserDaoImpl;
import com.car.domain.Store;
import com.car.service.StoreService;
import com.car.service.UserService;
import com.car.utils.MenuUtils;

import java.util.Scanner;

public class Application {
    public static void main(String[] args) throws Exception {
        //商店初始化
        StoreService storeService=new StoreService();
        Store store=new Store("耗牛必的三手车行",storeService.display());
        Scanner scanner=new Scanner(System.in);
        UserService userService=new UserService(new UserDaoImpl());
        MenuUtils.mainMenu(scanner,userService,store);
    }
}
